<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
</head>

<body>
<button onclick="location.href='http://www.baidu.com'">进入百度</button>
<form action="save" method="get">
    <label><input id="username" name="username" type="text"></label>
    <a href="javascript:void(0)" onclick="document.forms[0].submit()">提交</a>
    <input type="submit" value="提交">
</form>
<script>
    /*声明函数,返回一个随机颜色字符串*/
    function getColor() {
        let str = "012456789abcdef"
        let c = '#'
        for (let i = 0; i < 6; i++) {
            c += str.charAt(Math.round(Math.random() * (str.length - 1)))
        }
        return c
    }

    console.log('log')
    console.debug('debug')
    console.info('info')
    console.warn('warn')
    console.error('error', 2 * 3, '*'.repeat(15))
    for (i = 10; i <= 20; i++) {
        let tempc = getColor()
        console.error(tempc)
        document.write(`<h3 style='color:${tempc}'>hello ${i} - ${tempc}</h3>`)
    }
</script>

</body>
</html>
